package com.kingmed.kmss.common.service.sys;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 文件服务
 */
public interface FileService {

    /**
     * resources文件下载并反馈给前端
     *
     * @param request
     * @param response
     * @param filePathAndName
     * @param type
     * @throws IOException
     */
    void resourcesFileDownload(HttpServletRequest request, HttpServletResponse response, String filePathAndName, Integer type) throws IOException;

    /**
     * 模版文件下载并反馈给前端
     *
     * @param request
     * @param response
     * @param type
     * @throws IOException
     */
    void templateFileDownload(HttpServletRequest request, HttpServletResponse response, Integer type, List<?> lst, Class clazz) throws IOException;

}
